package com.vm.osm.business.service;

import com.vm.osm.business.dto.req.orderInst.ReqAcceptByDept;
import com.vm.osm.business.dto.req.orderInst.ReqGetMyOrder;
import com.vm.osm.business.dto.req.orderInst.ReqOutSideOrder;
import com.vm.osm.business.dto.req.orderInst.ReqRefuseByDept;
import com.vm.osm.business.dto.rsp.orderInst.RspAllOrderPage;
import com.vm.osm.business.dto.rsp.orderInst.RspOrderPage;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by chenzui on 2018/4/1.
 */
public interface IOrderService {
    /**
     * 查询工单
     * @param reqGetMyOrder
     * @return
     */
    public RspAllOrderPage findPage(ReqGetMyOrder reqGetMyOrder);

    /**
     * 故障上报
     * @param reqUpOrder
     */
    public void upOrder(ReqOutSideOrder reqUpOrder);

    /**
     * 受理外部单据
     * @param reqAcceptByDept
     */
    public void acceptByDept(ReqAcceptByDept reqAcceptByDept,HttpServletRequest request);


    public void refuseByDept(String orderId,String type,String reason,HttpServletRequest request);
}
